package com.deng.permission.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyToOne;
import org.hibernate.annotations.LazyToOneOption;
import org.hibernate.annotations.OptimisticLock;

import com.deng.common.vo.OrganizationVo;

@Entity
@Table(name="t_sys_users")
public class UserVoForHibernate implements Serializable{

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getBaobiao() {
		return baobiao;
	}

	public void setBaobiao(Integer baobiao) {
		this.baobiao = baobiao;
	}

	public Integer getEtl_shenhe() {
		return etl_shenhe;
	}

	public void setEtl_shenhe(Integer etl_shenhe) {
		this.etl_shenhe = etl_shenhe;
	}

	public Integer getGongshi() {
		return gongshi;
	}

	public void setGongshi(Integer gongshi) {
		this.gongshi = gongshi;
	}

	public Integer getIs_administrator() {
		return is_administrator;
	}

	public void setIs_administrator(Integer is_administrator) {
		this.is_administrator = is_administrator;
	}

	public Integer getIs_allow_login() {
		return is_allow_login;
	}

	public void setIs_allow_login(Integer is_allow_login) {
		this.is_allow_login = is_allow_login;
	}

	public Integer getIs_valid() {
		return is_valid;
	}

	public void setIs_valid(Integer is_valid) {
		this.is_valid = is_valid;
	}

	public Integer getJichu() {
		return jichu;
	}

	public void setJichu(Integer jichu) {
		this.jichu = jichu;
	}

	public Integer getPf_jiangcheng() {
		return pf_jiangcheng;
	}

	public void setPf_jiangcheng(Integer pf_jiangcheng) {
		this.pf_jiangcheng = pf_jiangcheng;
	}

	public Integer getPf_lingdao() {
		return pf_lingdao;
	}

	public void setPf_lingdao(Integer pf_lingdao) {
		this.pf_lingdao = pf_lingdao;
	}

	public Integer getQuanxian() {
		return quanxian;
	}

	public void setQuanxian(Integer quanxian) {
		this.quanxian = quanxian;
	}

	public Integer getReturn_action() {
		return return_action;
	}

	public void setReturn_action(Integer return_action) {
		this.return_action = return_action;
	}

	public Integer getRole_id() {
		return role_id;
	}

	public void setRole_id(Integer role_id) {
		this.role_id = role_id;
	}

	public Integer getSh_yicijiangjin() {
		return sh_yicijiangjin;
	}

	public void setSh_yicijiangjin(Integer sh_yicijiangjin) {
		this.sh_yicijiangjin = sh_yicijiangjin;
	}

	public Integer getShujuguanli() {
		return shujuguanli;
	}

	public void setShujuguanli(Integer shujuguanli) {
		this.shujuguanli = shujuguanli;
	}

	public Integer getSjly() {
		return sjly;
	}

	public void setSjly(Integer sjly) {
		this.sjly = sjly;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAdmin() {
		return admin;
	}

	public void setAdmin(String admin) {
		this.admin = admin;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getErci_gongzuojixiao() {
		return erci_gongzuojixiao;
	}

	public void setErci_gongzuojixiao(String erci_gongzuojixiao) {
		this.erci_gongzuojixiao = erci_gongzuojixiao;
	}

	public String getErci_jingyingjixiao() {
		return erci_jingyingjixiao;
	}

	public void setErci_jingyingjixiao(String erci_jingyingjixiao) {
		this.erci_jingyingjixiao = erci_jingyingjixiao;
	}

	public String getGuishu_id() {
		return guishu_id;
	}

	public void setGuishu_id(String guishu_id) {
		this.guishu_id = guishu_id;
	}

	public String getIdentityno() {
		return identityno;
	}

	public void setIdentityno(String identityno) {
		this.identityno = identityno;
	}

	public String getJjsh_gongzuohebing() {
		return jjsh_gongzuohebing;
	}

	public void setJjsh_gongzuohebing(String jjsh_gongzuohebing) {
		this.jjsh_gongzuohebing = jjsh_gongzuohebing;
	}

	public String getJjsh_gongzuojixiao() {
		return jjsh_gongzuojixiao;
	}

	public void setJjsh_gongzuojixiao(String jjsh_gongzuojixiao) {
		this.jjsh_gongzuojixiao = jjsh_gongzuojixiao;
	}

	public String getJjsh_jingyingjixiao() {
		return jjsh_jingyingjixiao;
	}

	public void setJjsh_jingyingjixiao(String jjsh_jingyingjixiao) {
		this.jjsh_jingyingjixiao = jjsh_jingyingjixiao;
	}

	public String getJjsh_xingzhengkeshi() {
		return jjsh_xingzhengkeshi;
	}

	public void setJjsh_xingzhengkeshi(String jjsh_xingzhengkeshi) {
		this.jjsh_xingzhengkeshi = jjsh_xingzhengkeshi;
	}

	public String getLoad_kpi() {
		return load_kpi;
	}

	public void setLoad_kpi(String load_kpi) {
		this.load_kpi = load_kpi;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPf_gongzuojixiao() {
		return pf_gongzuojixiao;
	}

	public void setPf_gongzuojixiao(String pf_gongzuojixiao) {
		this.pf_gongzuojixiao = pf_gongzuojixiao;
	}

	public String getPf_gongzuojixiaogeren() {
		return pf_gongzuojixiaogeren;
	}

	public void setPf_gongzuojixiaogeren(String pf_gongzuojixiaogeren) {
		this.pf_gongzuojixiaogeren = pf_gongzuojixiaogeren;
	}

	public String getPf_jingyingjixiao() {
		return pf_jingyingjixiao;
	}

	public void setPf_jingyingjixiao(String pf_jingyingjixiao) {
		this.pf_jingyingjixiao = pf_jingyingjixiao;
	}

	public String getPf_kpi() {
		return pf_kpi;
	}

	public void setPf_kpi(String pf_kpi) {
		this.pf_kpi = pf_kpi;
	}

	public String getPf_paiban() {
		return pf_paiban;
	}

	public void setPf_paiban(String pf_paiban) {
		this.pf_paiban = pf_paiban;
	}

	public String getPf_xingzhengkeshi() {
		return pf_xingzhengkeshi;
	}

	public void setPf_xingzhengkeshi(String pf_xingzhengkeshi) {
		this.pf_xingzhengkeshi = pf_xingzhengkeshi;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getPy() {
		return py;
	}

	public void setPy(String py) {
		this.py = py;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getSh_gongzuojixiao() {
		return sh_gongzuojixiao;
	}

	public void setSh_gongzuojixiao(String sh_gongzuojixiao) {
		this.sh_gongzuojixiao = sh_gongzuojixiao;
	}

	public String getSh_gongzuojixiaogeren() {
		return sh_gongzuojixiaogeren;
	}

	public void setSh_gongzuojixiaogeren(String sh_gongzuojixiaogeren) {
		this.sh_gongzuojixiaogeren = sh_gongzuojixiaogeren;
	}

	public String getSh_jingyingjixiao() {
		return sh_jingyingjixiao;
	}

	public void setSh_jingyingjixiao(String sh_jingyingjixiao) {
		this.sh_jingyingjixiao = sh_jingyingjixiao;
	}

	public String getSh_kpi() {
		return sh_kpi;
	}

	public void setSh_kpi(String sh_kpi) {
		this.sh_kpi = sh_kpi;
	}

	public String getSh_paiban() {
		return sh_paiban;
	}

	public void setSh_paiban(String sh_paiban) {
		this.sh_paiban = sh_paiban;
	}

	public String getSh_xingzhengkeshi() {
		return sh_xingzhengkeshi;
	}

	public void setSh_xingzhengkeshi(String sh_xingzhengkeshi) {
		this.sh_xingzhengkeshi = sh_xingzhengkeshi;
	}

	public String getWb() {
		return wb;
	}

	public void setWb(String wb) {
		this.wb = wb;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Set<OrganizationVo> getOrganization_vo() {
		return organization_vo;
	}

	public void setOrganization_vo(Set<OrganizationVo> organization_vo) {
		this.organization_vo = organization_vo;
	}

	private Date birthday;
	private Integer baobiao;
	private Integer etl_shenhe;
	private Integer gongshi;
	private Integer is_administrator;
	private Integer is_allow_login;
	private Integer is_valid;
	private Integer jichu;
	private Integer pf_jiangcheng;
	private Integer pf_lingdao;
	private Integer quanxian;
	private Integer return_action;
	private Integer role_id;
	private Integer sh_yicijiangjin;
	private Integer shujuguanli;
	private Integer sjly;
	private String address;
	private String admin;
	
	@Id
	@GenericGenerator(name = "idGenerator", strategy = "assigned")
	@GeneratedValue(generator = "idGenerator")
	private String code;
	
	private String country;
	private String email;
	private String erci_gongzuojixiao;
	private String erci_jingyingjixiao;
	private String guishu_id;
	private String identityno;
	private String jjsh_gongzuohebing;
	private String jjsh_gongzuojixiao;
	private String jjsh_jingyingjixiao;
	private String jjsh_xingzhengkeshi;
	private String load_kpi;
	private String mobile;
	private String name;
	private String password;
	private String pf_gongzuojixiao;
	private String pf_gongzuojixiaogeren;
	private String pf_jingyingjixiao;
	private String pf_kpi;
	private String pf_paiban;
	private String pf_xingzhengkeshi;
	private String position;
	private String py;
	private String sex;
	private String sh_gongzuojixiao;
	private String sh_gongzuojixiaogeren;
	private String sh_jingyingjixiao;
	private String sh_kpi;
	private String sh_paiban;
	private String sh_xingzhengkeshi;
	private String wb;

	@Version
	private Integer version;
	
	@ManyToMany(targetEntity=com.deng.common.vo.OrganizationVo.class,
			cascade=CascadeType.ALL,fetch=FetchType.EAGER
			)
	@JoinTable(name="t_sys_users_vs_department",
			joinColumns={@JoinColumn(name="code")},
			inverseJoinColumns={@JoinColumn(name="organization_id")})
	
	private Set<OrganizationVo> organization_vo;
	
//	public String pf_gongzuojixiao;
//	public String pf_jingyingjixiao;
//	public String pf_xingzhengkeshi;
//	public String pf_kpi;
//	public String pf_gongzuojixiaogeren;
//	public String pf_paiban;
//	public String sh_gongzuojixiao;
//	public String sh_jingyingjixiao;
//	public String sh_xingzhengkeshi;
//	public String sh_kpi;
//	public String sh_gongzuojixiaogeren;
//	public String sh_paiban;
//	public String jjsh_gongzuojixiao;
//	public String erci_gongzuojixiao;
//	public String jjsh_gongzuohebing;
//	public String jjsh_jingyingjixiao;
//	public String erci_jingyingjixiao;
//	public String jjsh_xingzhengkeshi;
//
//	public Integer gongshi;
//	public Integer jichu;
//	public Integer shujuguanli;
//	public Integer etl_shenhe;
//	public Integer quanxian;
//	
//	public String userName;
//	public String name;
//	public String password;
//	public Integer is_valid;
//	public Integer admin;
//	public Integer baobiao;
//	public Integer pf_jiangcheng;
//	public Integer pf_lingdao;
//	public Integer sh_yicijiangjin;
//	public String load_kpi;
//	public Integer return_action;
//	public String guishu_id;
	
	
	
	
	
//	public Integer titleId;
//	public String titleName; 
//	public Integer role;
//	public String firstOrganization;
//	public String firstDispense;
//
//	public String ycfp_manager;//1、一次分配管理（科室）
//	public String ecfp_manager;//2、二次分配管理（科室2）
//	public String yccx;//3、一次分配结果查询（单个科室/全部）keshi2
//	public String eccx;//4、二次分配结果查询（科室/quanbu）+（个人/quanbu）
//	public String base_parameter;//5、基本参数配置
//	public String admin;//6、管理员权限
}
